﻿using System;

using BodaNetCommunications.Utilities.ComTypes;

namespace BodaNetCommunications.Utilities.Attributes
{
    /// <summary>
    /// 用于反射出需要的NetWork服务
    /// </summary>
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Class, AllowMultiple = false)]
    public class ProtocolTypeAttribute : Attribute
    {
        public ProtocolType ProtoclType { get; set; }

        public ProtocolTypeAttribute(ProtocolType protoclType)
        {
            ProtoclType = protoclType;
        }
    }
}